import React from "react";
import frame from '../../../style/frame.less';
import {FormattedMessage} from 'react-intl';

class Thead extends React.Component {

    constructor(props) {
        super(props);
        // this.data = ['全选', '图片', '主SKU', '子SKU', '商品名称', '商品重量/打包重量(g)', '销售状态', '商品类型', '操作'];
        this.state = {};

    }

    componentDidMount() {
        this.state.order = ['ds'];
    }

    render() {
        return (
            <thead>
            <tr>
                {this.props.title.map((item, index) => {
                    return (
                        <td nowrap="nowrap" key={index}>
                            <FormattedMessage id={item.field} defaultMessage={item.field}></FormattedMessage>
                        </td>
                    )
                })}
            </tr>
            </thead>
        )
    }
}

export default Thead
